package com.yafeng.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor  //生成有参构造
@NoArgsConstructor //生成无参构造
public class CustomException extends RuntimeException {

    private int code; //状态码
    private String msg=null; // 状态信息

}
